﻿@model KRM.Core.tblKRMTradeCustomer
<div class="row-fluid">
    <div class="span3">
        <form method="POST" id="fr-uploadfile" enctype="multipart/form-data" action="/trade/previeworders">
            <input type="file" name="FileUpload" id="FileUpload" class="input-block-level" onchange="$('#fr-uploadfile').submit()"/>
        </form>
    </div>   
    <div class="span1"><i id="uploadSuccess" class="icon-ok" style="display:none; color: green"></i></div> 
    <form method="POST" id="fr-uploadtradeorder" enctype="multipart/form-data" action="/trade/previeworders">
        <input  type="hidden" name="IsSubmitOrder" id="IsSubmitOrder"value="0"/>
        <input  type="hidden" name="tradeAccNumber" id="TradeAccNumber"value="@Model.TradeAccNumber"/>
        <input type="hidden" name="FileName" id="FileName" class="input-block-level"/>
        <div class="span4">
            <button type="button" class="btn btn-primary" id="previewOrders" onclick="previewExcelOrders()">Preview Orders</button>
            <button type="button" class="btn btn-primary" id="submitOrders" disabled="disabled" onclick="submitExcelOrders()">Submit Orders</button>
        </div>
    </form>
</div>
<div class="" style="margin-top: 10px" id="previeworderresult">
    
</div>
